<?php

return [
    'bootstrap' => ['queue'],
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=39.107.59.126;dbname=yydz',
            'username' => 'yydz',
            'password' => 's2ah#@dsH23',
            'charset' => 'utf8',
            'tablePrefix' => 'yy_',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 3600,
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['info', 'error', 'warning'],
                    'logFile' => '@app/runtime/queue/' . date('Ym/d') . '.log',
                    'logVars' => ['_GET', '_POST'],
                    'categories' => ['queue'],
                ]
            ],
        ],
        'security' => [
            'public_key' => 'ZDwJ662qLL&#$N&C',
            'secret_key' => md5('key'),
        ],
        'queue' => [
            'class' => \yii\queue\beanstalk\Queue::class,
            'host' => '127.0.0.1',
            'port' => 11300,
            'tube' => 'queue',
        ],
        //阿里大鱼短信youmbe.sms
        'dysms' => [
            'accessKeyId' => 'LTAI4Fez9Pd41PKTZmcq2BMm',
            'accessKeySecret' => 'J9PtuYgZ7z8bzVAgWWNiOEpMZ208jF',
        ],
        //融云sdk
        'rongyun' => [
            'appKey' => 'p5tvi9dspn1j4',
            'appSecret' => 'dUN3ThWzk1f',
        ],
        //微信开放平台
        'openWechat' => [
            'appId' => 'wxf8d3601338b20095',
            'appSecret' => '2f5e0bc9d0c093734213ddd94937581d',
        ],
        //微信支付
        'wxpay' => [
            'appid' => 'wxf8d3601338b20095',
            'mch_id' => '1515498121',
            'partner_key' => 'b75e869001aa51d53b943e73178cb39d',
        ],
        //微信小程序
//        'wechat' => [
//            'appId' => 'wx998152cace9860a9',
//            'appSecret' => '307c546f59df28d9cc904695603d1ba7',
//        ],
        //小程序支付
//        'mppay' => [
//            'appid' => 'wx998152cace9860a9',
//            'mch_id' => '1480014762',
//            'partner_key' => 'qsrLNVSvdkuVHOild8VzESH9i2LW7bLh',
//        ],
        //支付宝支付
//        'alipay' => [
//            'appId' => '2018092261528111',
//            'rsaPrivateKey'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vt9ySCWGJ3xLYRJ5165SOU5rcK0fyoaNmSJ2B8PTYBUT5HL9zuKeVGOAJT5iieCm2cq4FPsPk9uSfJ0osYpJRpYzEO82PzzYjzTeFv7ofZsjt+OW1en8F3Q/oysNXIwDoz7x/9smCqtnZRk/DFzq++IDUn3/GV9+foECgYBNf6SP7EzG1sdjbT6XjB9dU+rD4JuKNIcmFDDrotO0gPPuhCIhwgx9KH/Ec7fnSZaRj1vojAL5vvxxd8wnGBpeHlq2XOATliCXjZAqXZTBR81l111Lv9P7TcrioqN/yFlm9JBy5upNBaq7GsU0Reuoka84AUQBK8supRUPjHm3bQKBgQC9BUG6KyJZBAHUlx7sIp7OpS5FaF1PEYqbN80mdbkH+2loPrXN9hmqPoKQgQ8v5IeuiZ4ji4t6M5hfMU9MCIWbeYuNem5jt2C2CIPhIYeg4wyC/BcryXKzHzHx2a4P/qWCdGq0RSMLtEJifNuiQ2X57wFEVHkUmcuin1rwvQWd8w==',
//            'alipayrsaPublicKey' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAljGWDjrThid18vDvXGmw1yAdUR/BJL0vlVBC8Yktqi8g+sV4tilH5JbYKuX3bdND2F7np1G1p6VkEo60VIM4Sr9m/sjBEGKDR7xX6EMUmfaqkA1b9WcLvNSx1d2wu6mJJ5kcN8glPKCshfnOt+CFdM2y8+dQRHj7QRrLvXU8J057hTUgblnsYE1ACkcRYDHAatvSSt2ZzaTp781oTtghYg9X7o16kwHooswwCU0kvL5lM+zWMGQ7138X1YphvddQl2jekv0yW1+0mX1jjjLVu+XMDOYNUPne6rtzXNTD0++mnaKh0VyeUYHuMRibo/GgBfE2/O1Lf33Io9C3FpFBXwIDAQAB',
//        ],
        //支付宝-多商户支付
        'alipay' => [
            'partners' => [
                1 => [
                    'appId' => '2018092261528111',
                    'rsaPrivateKeyFilePath' => '@common/data/alipay/rsa_private_key.pem',
                    'alipayPublicKey' => '@common/data/alipay/alipay_public.pem',
                ],
            ]
        ],
    ],
];
